<script setup lang="ts">
  import { ref } from 'vue';
  const radioValue = ref(1);

  /*
   * @description 父组件传递的props属性
   * */
  const { size = 'default', value = 1 } = defineProps<{
    size?: 'default' | 'small' | 'large';
    value: string | number | boolean;
  }>();
</script>
<template>
  <div>
    <el-radio-group v-model="radioValue">
      <el-radio :size="size" :value="value"></el-radio>
    </el-radio-group>
  </div>
</template>

<style scoped></style>
